cmake_minimum_required(VERSION 3.8)

# 设置项目名称
project(OpenCVImageDisplay)

# 查找 OpenCV 库
find_package(OpenCV REQUIRED)

# 包含 OpenCV 头文件目录
include_directories(${OpenCV_INCLUDE_DIRS})

# 添加可执行文件
add_executable(OpenCVImageDisplay opencv_display_image.cpp)

# 链接 OpenCV 库
target_link_libraries(OpenCVImageDisplay ${OpenCV_LIBS})  
